#!/usr/bin/env python
"""
Acorn-SDR (A Collaboration of Radio Nodes)
(c) Bob Cowdery (G3UKB) 2009

File: dsp_service.py
Date: January 2009

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

The author can be reached by email at

bob@g3ukb.co.uk

================================================================================
Module Description:

This file maps the values provided by the system to the specific values required by DttSp

"""

filter_map = {
    '6K0':(100, 6100),
    '2K4':(200, 2600,),
    '2K1':(200, 2300),
    '1K0':(200, 1200),
    '500':(350, 850),
    '250':(475, 725),
    '100':(550, 650),
    '50':(575, 625),
}

mode_map = {
    'LSB':0,
    'USB':1,
    'DSB': 2,
    'CW-L':3,
    'CW-U':4,
    'FM-N':5,
    'AM':6,
    'SAM':10,
    'DIGI-L': 9,
    'DIGI-U': 7,
    'SPEC': 8,
}

agc_map = {
    'AGC_FIXED':0,
    'AGC_LONG':1,
    'AGC_SLOW':2,
    'AGC_MEDIUM':3,
    'AGC_FAST':4,
}